package com.qfedu.lc.api.controller;

import com.qfedu.lc.api.feign.SmsLogService;
import com.qfedu.lc.common.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 3.短信发送表(SmsLog)表控制层
 *
 * @author makejava
 * @since 2023-10-19 14:19:47
 */
@RestController
@RequestMapping("api/sms")
@Api(tags = "短信操作")
public class SmsLogController {
    /**
     * 服务对象
     */
    @Resource
    private SmsLogService service;

   @GetMapping("sendrcode")
    public R sendRcode(String phone){
       return service.sendRcode(phone);
   }
    @GetMapping("all")
    public R all(){
        return service.all();
    }
}

